//
//  ZDPayTypeCell.m
//  ZDPension
//
//  Created by 刘甲奇 on 2017/6/20.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDPayTypeCell.h"

@interface ZDPayTypeCell()

@property (weak, nonatomic) IBOutlet UIImageView *icon1;
@property (weak, nonatomic) IBOutlet UIButton *meetButton;
@property (weak, nonatomic) IBOutlet UIButton *onLineButton;
@property (weak, nonatomic) IBOutlet UIImageView *icon2;
/**
 <#Description#>
 */
@property(nonatomic, strong) payClickBlock block;
@end

@implementation ZDPayTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.meetButton.layer.borderColor = LEHaxColor(0xe8e8e8).CGColor;
    self.meetButton.layer.borderWidth = 1;
    self.onLineButton.layer.borderColor = LEHaxColor(0xe8e8e8).CGColor;
    self.onLineButton.layer.borderWidth = 1;
}
- (void)payClick:(payClickBlock)block
{
    _block = block;
    
}
- (IBAction)meetPay:(UIButton *)sender
{
    self.icon1.hidden = NO;
    self.icon2.hidden = YES;
    _block(sender.tag);
}
- (IBAction)onlinePay:(UIButton *)sender
{
    self.icon1.hidden = YES;
    self.icon2.hidden = NO;
    _block(sender.tag);

}


@end
